﻿<?xml version="1.0" encoding="utf-8"?>
<tasks>
  <task id="LinkTypes" name="LinkType definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item link types created">
    <taskXml>
      <LINKTYPES>
        <LINKTYPE fileName="WorkItem Tracking\LinkTypes\SharedStep.xml" />
        <LINKTYPE fileName="WorkItem Tracking\LinkTypes\TestedBy.xml" />
      </LINKTYPES>
    </taskXml>
  </task>
  <task id="WITs" name="WorkItemType definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item types created">
    <dependencies>
      <dependency taskId="LinkTypes" />
    </dependencies>
    <taskXml>
      <WORKITEMTYPES>
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Bug.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\CodeReviewRequest.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\CodeReviewResponse.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\FeedbackRequest.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\FeedbackResponse.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\SharedStep.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Card.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\TestCase.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\ProcessStep.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Task.xml" />
      </WORKITEMTYPES>
    </taskXml>
  </task>
  <task id="Queries" name="Stored Query Definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item queries uploaded">
    <dependencies>
      <dependency taskId="WITs" />
    </dependencies>
    <taskXml>
      <QUERIES>
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="[SERVER]\$$PROJECTCOLLECTIONADMINGROUP$$" />
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="[$$PROJECTNAME$$]\$$PROJECTADMINGROUP$$" />
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="$$CREATOR_OWNER$$" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Readers" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Contributors" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Build Administrators" />
        <QueryFolder name="Work">
          <Query name="Active Problems" fileName="WorkItem Tracking\Queries\Active Problems.wiq" />
          <Query name="Blocked Cards" fileName="WorkItem Tracking\Queries\Blocked Cards.wiq" />
          <Query name="In Progress Cards" fileName="WorkItem Tracking\Queries\In Progress Cards.wiq" />
          <Query name="My Cards" fileName="WorkItem Tracking\Queries\My Cards.wiq" />
          <Query name="Queued Cards" fileName="WorkItem Tracking\Queries\Queued Cards.wiq" />
          <Query name="All Cards" fileName="WorkItem Tracking\Queries\All Cards.wiq" />
          <Query name="Feedback Requests" fileName="WorkItem Tracking\Queries\FeedbackRequests.wiq" />
          <Query name="Resolved Bugs" fileName="WorkItem Tracking\Queries\ResolvedBugs.wiq" />
        </QueryFolder>
        <QueryFolder name="Planning">
          <Query name="All Work Items" fileName="WorkItem Tracking\Queries\All Work Items.wiq" />
          <Query name="Backlog" fileName="WorkItem Tracking\Queries\Backlog.wiq" />
          <Query name="Active Problems" fileName="WorkItem Tracking\Queries\Closed Cards.wiq" />
        </QueryFolder>
        <QueryFolder name="Process">
          <Query name="Process Steps" fileName="WorkItem Tracking\Queries\Process Steps.wiq" />
        </QueryFolder>
      </QUERIES>
    </taskXml>
  </task>
  <task id="Categories" name="Categories definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item type categories created">
    <dependencies>
      <dependency taskId="WITs" />
    </dependencies>
    <taskXml>
      <CATEGORIES fileName="WorkItem Tracking\Categories.xml" />
    </taskXml>
  </task>
  <task id="WIs" name="WorkItems" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="WorkItems uploaded">
    <dependencies>
      <dependency taskId="WITs" />
    </dependencies>
    <taskXml>
      <WORKITEMS>
        <WI type="Process Step">
          <FIELD refname="System.Title" value="Analyze" />
          <FIELD refname="Microsoft.VSTS.Kanban.ProcessStep.Order" value="10" />
        </WI>
        <WI type="Process Step">
          <FIELD refname="System.Title" value="Implement" />
          <FIELD refname="Microsoft.VSTS.Kanban.ProcessStep.Order" value="20" />
        </WI>
        <WI type="Process Step">
          <FIELD refname="System.Title" value="Test" />
          <FIELD refname="Microsoft.VSTS.Kanban.ProcessStep.Order" value="30" />
        </WI>
        <WI type="Process Step">
          <FIELD refname="System.Title" value="Review" />
          <FIELD refname="Microsoft.VSTS.Kanban.ProcessStep.Order" value="40" />
        </WI>
      </WORKITEMS>
    </taskXml>
  </task>
     <task id="ProcessConfiguration" name="Process Configuration" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Process configuration uploaded">
    <dependencies>
      <dependency taskId="WITs" />
      <dependency taskId="Categories" />
    </dependencies>
    <taskXml>
      <PROCESSCONFIGURATION>
        <CommonConfiguration fileName="WorkItem Tracking\Process\CommonConfiguration.xml"/>
        <AgileConfiguration fileName="WorkItem Tracking\Process\AgileConfiguration.xml"/>
      </PROCESSCONFIGURATION>
    </taskXml>
  </task>
</tasks>